import org.apache.hadoop.io.IntWritable;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.mapreduce.Mapper;
import java.io.IOException;
public class Map extends Mapper<Object, Text, IntWritable, IntWritable> {
    private static IntWritable data = new IntWritable();
    @Override
    public void map(Object key, Text value, Context context) throws IOException,
            InterruptedException {
        String line = value.toString();
        data.set(Integer.parseInt(line));
        context.write(data, new IntWritable(1));
    }
}